# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo04
# Description:
# Author:       98745
# Date:         2019/3/14
#-------------------------------------------------------------------------------

import pandas
df=pandas.read_csv('gapminder.tsv',sep='\t')
s=df.loc[:,['year','pop']]
print(s.head(2))
print('-----------')
s=df.iloc[:,[2,4,-1]]
print(s.head(2))
print('------------')
s=df.iloc[:,3:6]
print(s.head(2))
print('-------------')
s=df.iloc[0:3,3:6]
print(s.head(2))
print('------------')
s=df.loc[1,'lifeExp']
print(s)
